var path = require('path')
var webpack = require('webpack')

module.exports = {

  entry: './app/index.js',

  output: {
    filename: 'bundle.js',
    path: path.join(__dirname, 'dist'),
    publicPath: '/dist/'
  },
  devServer: {
    color: true,
    progress: true,
    port: 8080
  },
  resolve: {
    extensions: ['', '.js', '.jsx']
  },
  module: {
    loaders: [{
      test: /\.jsx?$/,
      loader: 'babel',
      query: {
        presets: ['es2015', 'react']
      },
      exclude: /node_modules/,
      include: /app/
    }]
  }


}